<!DOCTYPE html>
<?php
    session_start();
    if(isset($_SESSION['admin'])){
        require_once("viewmenu.php");
?>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo-default.css" />
	<link rel="stylesheet" type="text/css" href="css/tabelaprodutos.css" />        
	<link rel="stylesheet" type="text/css" href="css/jquery-ui.css" />
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/jquery-ui.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script type="text/javascript" src="js/jquery.maskMoney.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type='text/javascript' src='js/produto.cadastro.alterar.js'></script>
      	<title>Cadastro</title>
    </head>
    <body>
        <div id='centro'>
            <p>Alterar Cadastro de Produto</p>
            <fieldset>
            <form name='alterarcadastroproduto' id="alterarcadastroproduto" action='../control/ControleAlterarCadastroProduto.php' method='post'>
                <table>
                <thead>
                    <tr>
                        <th id="cod">Código</th>
                        <th id="nome">Nome</th>
                        <th id="valor">Valor Unit</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><input type='text' class="input-text" maxlength="13" name='id' id="codpro" autofocus/></td>
                        <td><input type='text' class="nome" name='nome' maxlength="50" id="nomepro" readonly/></td>
                        <td><input type='text' class="input-text" name='preco' id="preco" readonly/></td>
                    </tr>
                </tbody>
                </table>
                <input type='submit' name='controle' value='Cadastrar'/>
                <button type="button" id="voltar" name='voltar' value='voltar'>Voltar</button>
            </form>   
            </fieldset>
        </div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>